home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig11_23.jar
/
Ch11
/
Fig11_23
/
Fig11_23.cpp
Wrap
C/C++ Source or Header
|
1997-10-29
|
285b
|
15 lines
// Fig. 11.23: fig11_23.cpp
// Printing an integer with internal spacing and
// forcing the plus sign.
#include <iostream.h>
#include <iomanip.h>
int main()
{
cout << setiosflags( ios::internal | ios::showpos )
<< setw( 10 ) << 123 << endl;
return 0;
}